主要功能: - 修改RequirementModal支持12个订单班选择 - 添加OrderClassIconMap图标映射组件 - Store中添加selectedOrderClass状态管理 - WorkflowPage支持传递orderClass参数 - web_result添加URL参数切换功能 - 创建order-class-handler.js动态处理页面主题 技术改进: - 创建软链接关联订单班数据目录 - 生成wenlu.json和food.json数据结构 - 删除重复的web_result目录 - 添加测试页面test-order-class.html 影响范围: - 展会策划系统现支持12个订单班 - 结果展示页面自动适配不同订单班主题 - 用户可选择不同行业生成对应方案 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
66 lines
2.4 KiB
JavaScript
66 lines
2.4 KiB
JavaScript
Prism.languages.python = {
|
|
'comment': {
|
|
pattern: /(^|[^\\])#.*/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
'string-interpolation': {
|
|
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
greedy: true,
|
|
inside: {
|
|
'interpolation': {
|
|
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
lookbehind: true,
|
|
inside: {
|
|
'format-spec': {
|
|
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
lookbehind: true
|
|
},
|
|
'conversion-option': {
|
|
pattern: //,
|
|
alias: 'punctuation'
|
|
},
|
|
rest: null
|
|
}
|
|
},
|
|
'string': /[\s\S]+/
|
|
}
|
|
},
|
|
'triple-quoted-string': {
|
|
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
greedy: true,
|
|
alias: 'string'
|
|
},
|
|
'string': {
|
|
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
greedy: true
|
|
},
|
|
'function': {
|
|
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
lookbehind: true
|
|
},
|
|
'class-name': {
|
|
pattern: /(\bclass\s+)\w+/i,
|
|
lookbehind: true
|
|
},
|
|
'decorator': {
|
|
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
lookbehind: true,
|
|
alias: ['annotation', 'punctuation'],
|
|
inside: {
|
|
'punctuation': /\./
|
|
}
|
|
},
|
|
'keyword': /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
'builtin': /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
'boolean': /\b(?:False|None|True)\b/,
|
|
'number': /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
'operator': /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
'punctuation': /[{}[\];(),.:]/
|
|
};
|
|
|
|
Prism.languages.python['string-interpolation'].inside['interpolation'].inside.rest = Prism.languages.python;
|
|
|
|
Prism.languages.py = Prism.languages.python;
|